//
//  AddLoanViewController.h
//  Wallets Manager
//
//  Created by Tung Nguyen on 10/14/12.
//  Copyright (c) 2012 BKHN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DataBaseAccess.h"
#import "SelectIncomeCategory.h"
#import "TapkuLibrary.h"
#import "folyAppDelegate.h"

@interface AddLoanViewController : UIViewController <TKCalendarMonthViewDataSource,TKCalendarMonthViewDelegate,UITextFieldDelegate, UIActionSheetDelegate> {
    Loan *currentLoan;
}
@property (weak, nonatomic) IBOutlet UILabel *headerTextField;
@property (weak, nonatomic) IBOutlet UIButton *addButton;

@property (weak, nonatomic) IBOutlet UITextField *loanNameTextField;
@property (weak, nonatomic) IBOutlet UITextField *borrowerTextField;
@property (weak, nonatomic) IBOutlet UITextField *amountTextField;
@property (weak, nonatomic) IBOutlet UITextField *walletNameTextField;
@property (weak, nonatomic) IBOutlet UITextField *dateTextField;
@property (weak, nonatomic) IBOutlet UITextField *dueDateTextField;
@property (weak, nonatomic) IBOutlet UITextField *noteTextField;

@property (retain, nonatomic) NSString *dateString;
@property (retain, nonatomic) UIActionSheet *pickerDateViewPopup;
@property (retain, nonatomic) UIActionSheet *pickerDueDateViewPopup;
@property (strong,nonatomic) TKCalendarMonthView *dateMonthViewCalendar;
@property (strong,nonatomic) TKCalendarMonthView *dueDateMonthViewCalendar;

@property (weak, nonatomic) NSString *kindOfView;
@property (strong, nonatomic) Loan *currentLoan;


- (IBAction)backButtonPressed:(id)sender;
- (IBAction)addButtonPressed:(id)sender;
-(void)popUpRefreshFrame;
- (void) createDatePickerView;
- (void) createDueDatePickerView;
-(void)popUpDateRefreshFrame;
-(void)popUpDueDateRefreshFrame;
@end
